package saledepartment.impl;

import product.impl.Product;
import saledepartment.bean.SellBean;
import saledepartment.interfeces.ISaleDepartment;
/**
 * Komponent dzial sprzedazy - 
 * @author przemek
 *
 */
public class SaleDepartment extends Department implements ISaleDepartment  {
	
	/**
	 * Sprzedaje produkt
	 */
	@Override
	public SellBean sellProduct(Product p,int price) {
		Product product = magazin.getProduct(p);
		SellBean sellBean = new SellBean(product, price);
		return sellBean;
	}


}
